package cn.dlc.com;

import cn.dlc.com.system.user.entity.UserEntity;
import cn.dlc.com.system.user.mapper.UserMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Author: dlc
 * @Date: 2021/12/22 - 10:35
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = CoreApplication.class)
public class Demo1 {

    @Autowired
    UserMapper userMapper;

    @Test
    public void test(){
        UserEntity userEntity = userMapper.selectById(1);
        System.out.println(userEntity);
    }

}
